package lesson15homework;

public class StudentDemo {

	public static void main(String[] args)
	{
		Student ivan = new Student("Ivan", "KST", 20);
		Student peter = new Student("Peter", "KST", 19);
		
	/*	printStudentInfo(ivan);
		ivan.upYear(ivan);
		printStudentInfo(ivan);
		ivan.upYear(ivan);
		printStudentInfo(ivan);
		ivan.upYear(ivan);
		printStudentInfo(ivan);
		ivan.upYear(ivan);
		printStudentInfo(ivan);
	*/	
		
		ivan.receiveScholarship(3.50, 100);
		printStudentInfo(ivan);
		
		peter.receiveScholarship(3.99, 12.50);
		printStudentInfo(peter);
		
	}
	
	
	
	
	static void printStudentInfo(Student st)
	{	
		System.out.println("==== Student Info ====");
		System.out.println("Name: " + st.name);
		System.out.println("Age: " + st.age);
		System.out.println("Subject: " + st.subject);
		System.out.println("Grade: " + st.grade);
		System.out.println("Year in College: " + st.yearInCollege);
		System.out.println("The student is degree!? " + st.isDegree);
		System.out.println("Money: " + st.money);
		System.out.println();
	}
	

}
